﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Pg.BioMedics.SDR.Entities
{
    /// <summary>
    /// Person entity
    /// </summary>
    [Serializable]
    [DataContract]
    public class Person
    {
        /// <summary>
        /// Gets person unique id
        /// </summary>
        [DataMember]
        public int? Id
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets person name
        /// </summary>
        [DataMember]
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets person surname
        /// </summary>
        [DataMember]
        public string Surname
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets person surname
        /// </summary>
        [DataMember]
        public string Login
        {
            get;
            set;
        }

        /// <summary>
        /// Gets / sets email address
        /// </summary>
        [DataMember]
        public string Email
        {
            get;
            set;
        }

        /// <summary>
        /// Gets person last status code
        /// </summary>
        [DataMember]
        public string StatusCode
        {
            get;
            set;
        }

        /// <summary>
        /// Gets last status transition date and time
        /// </summary>
        [DataMember]
        public DateTime? StatusDate
        {
            get;
            set;
        }

    }
}
